<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
    <!DOCTYPE html>
    <html>
    <head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link href="style/css/default.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="style/js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="style/js/themes/icon.css" />
    <script type="text/javascript" src="style/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="style/js/jQuery.easyui.js"></script>
	
<title>登陆</title>
     	<script type="text/javascript">
	// 验证输入不为空的脚本代码
	function checkForm(form) {
		if (form.username.value == "") {
			alert("用户名不能为空!");
			form.username.focus();
			return false;
		}
		if (form.password.value == "") {
			alert("密码不能为空!");
			form.password.focus();
			return false;
		}else if(form.password.value.length < 6){
			alert("密码的长度不小于6位!");
			form.password.focus();
			return false;
		}
		return true;
	}
	</script>
    </head>
    <body>
        <div style="margin-left: auto;margin-right: auto;margin-top: 200px;width: 400px;"> 
        <div class="easyui-panel" title=" " style="width:400px">
            <div style="padding:10px 60px 20px 60px">
            <form id="ff" action="<%=path%>/admin/manager_Login.action" class="easyui-form" method="post" data-options="novalidate:true" onsubmit="return checkForm(this);">
                <table cellpadding="5">
                    <tr>
                        <td>用户名</td>
                        <td><input class="easyui-textbox" type="text" name="admin.username" id="admin.username" data-options="required:true"></input></td>
                    </tr>

                    <tr>
                        <td>密&nbsp; 码</td>
                        <td><input class="easyui-textbox" name="admin.password" id="admin.password" type="password"  data-options="required:true"></input></td>
                    </tr>
                </table>
           	<div style="text-align:center;padding:5px">
                <input type="submit" class="easyui-textbox" value="登录">
                <button class="easyui-textbox" onclick="clearForm()">清除</button>
            </div>
            </form>

            </div>
        </div>
        <script>
            function clearForm(){
                $('#ff').form('clear');
            }
        </script>
    </body>
    </html>